import {Router} from 'express';
import {getCustomerRouter} from './customer'
import {getAdminRouter} from './admin'

export function getApiRouter(){
    const apiRouter = Router();

    apiRouter.get('/',async (req, res)=>{
        res.send('hello Hilton!')
    });
    apiRouter.use('/customer',getCustomerRouter());
    apiRouter.use('/admin',getAdminRouter());
    return apiRouter;
}